

package trabajos;

import java.util.*;


public class cad2 {
public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
int x=0;
    System.out.println("Introduce una cadena ");
      String cad=sc.next();
      while(x<cad.length()){
      Character cr=cad.charAt(x);
      if(cr.isDigit(cr)){
          System.out.println("A");
            }
        else{
          System.out.println(cr.toUpperCase(cr)); 
            }
      x++;
      }
     }
    }
